package com.study.kt._01grammar._01basic

fun main(args: Array<String>) {

    //二元元组定义
    val person: Pair<String, Int> = Pair("fauks", 30)
    val name = person.first
    val age = person.second
    //另一种写法
    var person2 = "slx" to 12
    //三元元组
    val newPerson: Triple<String, Int, String> = Triple("slx", 12, "青奥")
    println(name)
}